package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.Map;

import java.util.List;

public interface ITravelService {

    /**
     * 查询当前用户的所有游记,带有分页和排序
     */
    PageInfo<Travel> queryTravels(QueryObject qo);

    void saveOrUpdate(Travel entity);

    Travel get(Long id);

    /**
     * 根据内容对象的id查询游记内容
     * @param id
     * @return
     */
    TravelContent getContent(Long id);

    /**
     * 审核游记
     * @param id
     * @param state
     */
    void updateState(Long id, Integer state);

    List<Travel> listTravelTitle(Long strategyId);

    PageInfo<Travel> queryfriendTravel(TravelQueryObject qo);

    Map<String,Object> enshrineNumber(Long id);

    List<Map<String,Object>> ForcollectMe(Long id);

    PageInfo<Travel> queryMyEnshrine(TravelQueryObject qo);


    Map<String,Object> likeNumber(Long id);

    List<Map<String,Object>> likeMe(Long id);
}
